package member.model;

import java.sql.SQLException;
import java.util.List;

public class MemberService {
	private MemberDao memberDao;
	private MemberService(MemberDao memberDao){
		this.memberDao=memberDao;
	}
	public void memberRegist(MemberVO memberVO) throws SQLException {
		memberDao.memberRegist(memberVO);
	}
	public boolean memberExistId(String id) throws SQLException {
		boolean flag=false;
		if(memberDao.memberExistId(id)==1) flag=true;
		return flag;
	}
	public MemberVO memberLogin(MemberVO memberVO) throws SQLException {
		return memberDao.memberLogin(memberVO);
	}
	public MemberVO memberUpdate(MemberVO memberVO) throws SQLException {
		return memberDao.memberUpdate(memberVO);
	}
	public void memberDelete(String id) throws SQLException {
		memberDao.memberDelete(id);
	}
	public List memberGetAllMember() throws SQLException{
		return memberDao.memberGetAllMember();
	}
	public MemberVO getMatchedVO(String id) throws SQLException {
		return memberDao.getMatchedVO(id);
	}
}
